<!--  -->
<template>
    <el-card>
        <div slot="header" class="header">
            <div class="search-header">
                <span>线上热门搜索</span>
                <el-dropdown>
                    <span>
                        <i class="el-icon-more"></i>
                    </span>
                    <el-dropdown-menu slot="dropdown">
                        <el-dropdown-item>黄金糕</el-dropdown-item>
                        <el-dropdown-item>狮子头</el-dropdown-item>
                        <el-dropdown-item>螺蛳粉</el-dropdown-item>
                        <el-dropdown-item>双皮奶</el-dropdown-item>
                        <el-dropdown-item>蚵仔煎</el-dropdown-item>
                    </el-dropdown-menu>
                </el-dropdown>
            </div>
        </div>
        <div>
            <el-row :gutter="10">
                <el-col :span="12">
                    <LineCharts></LineCharts>
                </el-col>
                <el-col :span="12">
                    <LineCharts></LineCharts>
                </el-col>
            </el-row>

            <!-- table表格 -->

         <!-- table表格 -->
         <el-table :data="tableData" style="width: 100%" border>
        <el-table-column label="排名" width="80" type="index">
        </el-table-column>
        <el-table-column label="搜搜关键字" width="180"> </el-table-column>
        <el-table-column label="用户数" sortable> </el-table-column>
        <el-table-column label="周涨幅" sortable> </el-table-column>
      </el-table>
      <!-- 分页去 -->
      <el-pagination layout="prev, pager, next" :total="1000" class="pagination"> </el-pagination>
        </div>
    </el-card>
</template>

<script>
//这里可以导入其他文件（比如：组件，工具js，第三方插件js，json文件，图片文件等等）
//例如：import 《组件名称》 from '《组件路径》';
import LineCharts from './LineCharts'
export default {
    //import引入的组件需要注入到对象中才能使用
    data() {
        return {
            tableData: [],
        }
    },
    components: {
        LineCharts
    },
    methods: {
    }

}
</script>
<style lang='scss' scoped>
//@import url(); 引入公共css类
.search-header {
    display: flex;
    justify-content: space-between;
}

.header {
    border-bottom: 1px solid #eee;
    padding: 5px 0px;
}

.pagination {
    float: right;
}
</style>